package cn.exrick.xboot.vip.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 会员卡优惠券
 * </p>
 *
 * @author yuhaifei
 * @since 2022-10-09
 */
@Data
@TableName("vip_card_coupon")
@ApiModel(value = "会员卡优惠券")
public class VipCardCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "id")
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 优惠券名称
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "优惠券名称")
    private String title;

    /**
     * 简介
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "简介")
    private String content;

    /**
     * 条件
     */
    @TableField(value = "full_money")
    @ApiModelProperty(value = "条件")
    private Double fullMoney;

    /**
     * 减少金额
     */
    @TableField(value = "minus_money")
    @ApiModelProperty(value = "减少金额")
    private Double minusMoney;

    /**
     * 开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "start_time")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 截止时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "end_time")
    @ApiModelProperty(value = "截止时间")
    private Date endTime;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "member_id")
    @ApiModelProperty(value = "用户id")
    private Long memberId;

    /**
     * openid
     */
    @TableField(value = "open_id")
    @ApiModelProperty(value = "openid")
    private String openId;

    /**
     * 获取时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    @ApiModelProperty(value = "获取时间")
    private Date createTime;

}

